﻿using System;
using System.ComponentModel;
using System.Web.UI;
using ClipperHouse.jQuery.Base;

namespace ClipperHouse.jQuery
{
	public class Css : JQuery
	{
		private const string cssParamsParamName = "CssParams";

		public Css()
		{
			this.Params.Clear();
			Params[cssParamsParamName] = String.Empty;
		}

		public override string jQueryMethodName
		{
			get { return "css"; }
		}

		[
		DesignerSerializationVisibility(DesignerSerializationVisibility.Content),
		PersistenceMode(PersistenceMode.InnerProperty)
		]
		public InnerProperty CssParams
		{
			get
			{
				return _CssParams;
			}
			set
			{
				_CssParams = value;
				Params[cssParamsParamName] = _CssParams.Text.CleanCssParamsList().ToParamsExpression();
			}
		}
		private InnerProperty _CssParams;
	}
}
